<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>对象与数组</title>
</head>
<body>
<script>
    // 花括号表示的JSON对象
  var student = {
      name : 'tit',
      age : '20',
      school : '太工',
      department : '理学系'

  };
    console.log(student['name'])
    console.log(student.name)
  var num = ['1','2','3'];

</script>
</body>
</html>